package com.ld.collegetask.beans;

import android.content.Context;
import android.content.Intent;
import android.provider.Settings;
import android.view.View;

import com.ld.collegetask.MessageMemberInfoActivity;
import com.ld.collegetask.OrderMemberInfoActivity;

/**
 * Created by 樊海波 on 2017/9/20.
 */

public class TidingsBean {

    private Integer tidingsId;
    private String title;
    private String contents;
    private String createtime;

    public Integer getTidingsId() {
        return tidingsId;
    }

    public void setTidingsId(Integer tidingsId) {
        this.tidingsId = tidingsId;
    }

    public void click(View view) {
        Context context = view.getContext();
        Intent it = new Intent(context, MessageMemberInfoActivity.class);
        it.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        it.putExtra("tidingsId", tidingsId);
        context.startActivity(it);
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }
}
